
package com.kweative.model.query;

import com.kweative.model.column.Column;
import com.kweative.util.ArrayUtil;

/**
 *
 * @author henrik
 */
public class AssignPhrase<T extends Statement> extends Phrase {
    private Column col;
    private Object value;
    public AssignPhrase(Column col,Object value,Statement stmt) {
        super(stmt);
        this.col = col;
        this.value = value;
    }

    public Column getColumn() {
        return col;
    }

    public Object getValue() {
        return value;
    }

    @Override
    public String toString() {
        return QueryUtil.formatColumn(col) + " = " + QueryUtil.formatValue(col,value);
    }

}
